package com.yingxin.yxerp.module.sys.vo.resp;

import com.yingxin.yx.framework.commons.vo.CommonRespVo;
import com.yingxin.yxerp.module.sys.entity.enums.DingChatHelper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 钉钉发送消息回话id设置
 * @author jiangxudong
 * @since 2022-05-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="DingMessageSetRespVo对象", description="钉钉发送消息回话id设置")
public class DingMessageSetRespVo extends CommonRespVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "会话类型 ")
    private String chatType;

    @ApiModelProperty(value = "会话id")
    private String chatId;

    @ApiModelProperty(value = "企业群会话id")
    private String weComChatId;

    @ApiModelProperty(value = "会话说明")
    private String chatExplain;

    @ApiModelProperty(value = "发送标记 0否1是")
    private String isSend;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    public String getChatTypeName() {
        return DingChatHelper.getName(chatType);
    }

}
